import { defineStore } from 'pinia'
import { ref } from 'vue'

export interface uploadFileChunk {
    id: string,
    hash: string,
    index: string,
    fileName?:string
    jd?:number
}


const fileStore = () => {

    let isHaveFileUpload = ref(false)
    let curFileStatus = ref(0.01)


    return {
        isHaveFileUpload,
        curFileStatus
    }
}

export const useFileStore = defineStore('file', fileStore)